//
//  RGFocusVedioListView.h
//  RedGrass
//
//  Created by wukong on 2019/1/27.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RGRecommendVideoModel.h"

@class RGFocusVedioListView;

@protocol RGFocusVedioListViewDelegate <NSObject>

//加载关注视频
-(void) loadFocusVedioListWithView:(RGFocusVedioListView *)view isLoadMore:(BOOL)isLoadMore;

//点赞
-(void) favoriteVedioWithView:(RGFocusVedioListView *)view chosedIndexPath:(NSIndexPath *)path;

//评论
-(void) comementVedioWithView:(RGFocusVedioListView *)view chosedIndexPath:(NSIndexPath *)path;

//分享
-(void) shareVedioWithView:(RGFocusVedioListView *)view chosedIndexPath:(NSIndexPath *)path;

//更新视频播放量
-(void) updateVedioPlayCountWithCellIndex:(NSInteger)index;


@end

NS_ASSUME_NONNULL_BEGIN

@interface RGFocusVedioListView : UIView

@property (weak, nonatomic) id<RGFocusVedioListViewDelegate> viewDelegate;

-(void) reloadCollectionViewWithList:(NSMutableArray *) focusList;

//加载完成后，开始播放第一个视频
-(void) playVedioWithFirstIndexWhenLoadSuccess;

//刷新某一个cell
-(void) changeFarvoriteStatusWithIndexPath:(NSIndexPath *)path;

//停止header刷新动画
-(void) focusViewMjHeaderLoadingEnd;

//停止footer刷新动画
-(void) focusViewMjFooterLoadingEnd;
//设置footer的状态为nomoredata
-(void) setFocusViewMjFooterStatusWithNoMoreData;

-(void) stopPlayingWhenCurrentVCIsNoteVisiable; //当前页面不可见时暂停播放

//喜欢
-(void) startFavoriteAnimationWithIsFavorite:(BOOL)isFavorite cellIndex:(NSInteger)index;

-(void)updateCommentCountsWhenCommentSuccessWithCellIndex:(NSInteger)cellIndex;

-(void)updateforwardCountsWhenShareSuccessWithCellIndex:(NSInteger)cellIndex;


@end

NS_ASSUME_NONNULL_END
